
	
		<!--头部 end-->
		<div class="conter">
			<div class="login-back">
				<img src="__PUBLIC__/Home/Images/login-bigback.png" />
			</div>
			<div class="middle">
				<a class="back"><img src="__PUBLIC__/Home/Images/login-mid-back.png" /></a>
				<form class="mid-con" id="log" method="post">
					<div class="username">
						<span>用户名：</span>
						<input type="text" id="username" name="username" placeholder="用户名/邮箱/手机号/会员卡号"/>
						<p id="name">亲，用户名不能为空哦！</p>
					</div>
					<div class="password">
						<span>密码：</span>
						<input type="password" id="password" name="password" placeholder="请输入密码"/>
						<p id="mima">亲，密码不能为空哦！</p>
					</div>
					<div class="remember">
						<label><input type="checkbox" id="isAutoLogin">记住密码</label>
						<a href="#">忘记密码</a>
					</div>
					<button id="login">立即登录</button>
				</form>
				<div class="select">
					<h4>无需注册，选择以下方式登录</h4>
					<a href="#"><img src="__PUBLIC__/Home/Images/login-weibo.png" /></a>
					<a href="#"><img src="__PUBLIC__/Home/Images/login-weixin.png"></a>
					<a href="#"><img src="__PUBLIC__/Home/Images/login-QQ.png"></a>
				</div>
				
			</div>
		</div>
	</div>
		
<script type="text/javascript">
	$("#login").click(function(){
		var formdata = $("#log").serialize();
		$.ajax({
			url: '',
			type : 'post',
			dataType : 'json',
			data :formdata,
			success: function(data){
				if(data.code == 1){
					alert(data.info);
					window.location.href="{:U('Home/User/order')}";
					return false;
				}else{
					alert(data.info);
					return false;
				}
			}
		})
		return false;
	})
</script>